binary search - определение. Что такое binary search
Diclib.com
Словарь ChatGPT
Введите слово или словосочетание на любом языке 👆
Язык:

Перевод и анализ слов искусственным интеллектом ChatGPT

На этой странице Вы можете получить подробный анализ слова или словосочетания, произведенный с помощью лучшей на сегодняшний день технологии искусственного интеллекта:

  • как употребляется слово
  • частота употребления
  • используется оно чаще в устной или письменной речи
  • варианты перевода слова
  • примеры употребления (несколько фраз с переводом)
  • этимология

Что (кто) такое binary search - определение

SEARCH ALGORITHM IN SORTED LISTS THAT OPERATES BY DECREASING THE SEARCH SPACE BY HALF EACH PASS
Binary chop; Binary search; Bsearch; Binary Search; Half-interval search; Half-interval search method; Half interval search method
  • Binary search can be adapted to compute approximate matches. In the example above, the rank, predecessor, successor, and nearest neighbor are shown for the target value <math>5</math>, which is not in the array.
  • binary-search
  • The worst case is reached when the search reaches the deepest level of the tree, while the best case is reached when the target value is the middle element.
  • tree]] representing binary search. The array being searched here is <math>[20, 30, 40, 50, 80, 90, 100]</math>, and the target value is <math>40</math>.
  • [[Binary search tree]]s are searched using an algorithm similar to binary search.
  • Visualization of [[exponential search]]ing finding the upper bound for the subsequent binary search
  • In [[fractional cascading]], each array has pointers to every second element of another array, so only one binary search has to be performed to search all the arrays.
  • Visualization of [[interpolation search]] using linear interpolation. In this case, no searching is needed because the estimate of the target's location within the array is correct. Other implementations may specify another function for estimating the target's location.
  • In noisy binary search, there is a certain probability that a comparison is incorrect.
  • [[Uniform binary search]] stores the difference between the current and the two next possible middle elements instead of specific bounds.
Найдено результатов: 1223
binary search         
<algorithm> A search algorithm which repeatedly divides an ordered search space in half according to how the required (key) value compares with the middle element. The following pseudo-C routine performs a binary search return the index of the element of vector "thing[first..last]" equal to "target": if (target < thing[first] || target > thing[last]) return NOT_FOUND; while (first < last) { mid = (first+last)/2; /* truncate to integer */ if (target == thing[mid]) return mid; if (target < thing[mid]) last = mid-1; else first = mid+1; } if (target == thing[last]) return last; return NOT_FOUND; (2003-01-14)
Binary search algorithm         
In computer science, binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the array.
Binary search tree         
  • The node <math>\text{D}</math> to be deleted has 2 children
DATA STRUCTURE IN TREE FORM WITH 0, 1, OR 2 CHILDREN PER NODE, SORTED FOR FAST LOOKUP
Binary Search Tree; Binary search trees; Ordered binary tree

In computer science, a binary search tree (BST), also called an ordered or sorted binary tree, is a rooted binary tree data structure with the key of each internal node being greater than all the keys in the respective node's left subtree and less than the ones in its right subtree. The time complexity of operations on the binary search tree is directly proportional to the height of the tree.

Binary search trees allow binary search for fast lookup, addition, and removal of data items. Since the nodes in a BST are laid out so that each comparison skips about half of the remaining tree, the lookup performance is proportional to that of binary logarithm. BSTs were devised in the 1960s for the problem of efficient storage of labeled data and are attributed to Conway Berners-Lee and David Wheeler.

The performance of a binary search tree is dependent on the order of insertion of the nodes into the tree since arbitrary insertions may lead to degeneracy; several variations of the binary search tree can be built with guaranteed worst-case performance. The basic operations include: search, traversal, insert and delete. BSTs with guaranteed worst-case complexities perform better than an unsorted array, which would require linear search time.

The complexity analysis of BST shows that, on average, the insert, delete and search takes O ( log n ) {\displaystyle O(\log n)} for n {\displaystyle n} nodes. In the worst case, they degrade to that of a singly linked list: O ( n ) {\displaystyle O(n)} . To address the boundless increase of the tree height with arbitrary insertions and deletions, self-balancing variants of BSTs are introduced to bound the worst lookup complexity to that of the binary logarithm. AVL trees were the first self-balancing binary search trees, invented in 1962 by Georgy Adelson-Velsky and Evgenii Landis.

Binary search trees can be used to implement abstract data types such as dynamic sets, lookup tables and priority queues, and used in sorting algorithms such as tree sort.

Uniform binary search         
Uniform binary search algorithm
Uniform binary search is an optimization of the classic binary search algorithm invented by Donald Knuth and given in Knuth's The Art of Computer Programming. It uses a lookup table to update a single array index, rather than taking the midpoint of an upper and a lower bound on each iteration; therefore, it is optimized for architectures (such as Knuth's MIX) on which
balanced tree         
  • Tree rotations are very common internal operations on self-balancing binary trees to keep perfect or near-to-perfect balance.
ANY NODE-BASED BINARY SEARCH TREE THAT AUTOMATICALLY KEEPS ITS HEIGHT SMALL
Balanced tree; Balanced binary search tree; Height-balanced binary search tree; Height-balanced tree; Self-balancing binary tree; Balanced binary tree; Height-balanced binary tree; SBB tree; Balanced trees; Admissible tree; Relaxed balance; Root balance; Binary self-balancing search tree
<algorithm> An optimisation of a tree which aims to keep equal numbers of items on each subtree of each node so as to minimise the maximum path from the root to any leaf node. As items are inserted and deleted, the tree is restructured to keep the nodes balanced and the search paths uniform. Such an algorithm is appropriate where the overheads of the reorganisation on update are outweighed by the benefits of faster search. A B-tree is a kind of balanced tree that can have more than two subtrees at each node (i.e. one that is not restricted to being a binary tree). (2000-01-10)
Optimal binary search tree         
COMPUTER SCIENCE CONCEPT
Optimum binary search tree; Dynamic optimality; Static optimality
In computer science, an optimal binary search tree (Optimal BST), sometimes called a weight-balanced binary tree, is a binary search tree which provides the smallest possible search time (or expected search time) for a given sequence of accesses (or access probabilities). Optimal BSTs are generally divided into two types: static and dynamic.
Geometry of binary search trees         
  • This is an example of arborally satisfied set of points.
  • Rectangle spanned by two points. This point set is ''not'' arborally satisfied.
  • 130px
A Geometric View of Binary Search Trees; Arborally satisfied
In computer science, one approach to the dynamic optimality problem on online algorithms for binary search trees involves reformulating the problem geometrically, in terms of augmenting a set of points in the plane with as few additional points as possible in order to avoid rectangles with only two points on their boundary.
Treap         
  • Join performed on treaps <math>T_1</math> and <math>T_2</math>. Right child of <math>T_1</math> after the join is defined as a join of its former right child and <math>T_2</math>.
  • To split <math>T</math> by <math>x</math>, recursive split call is done to either left or right child of <math>T</math>.
BINARY SEARCH TREE IN WHICH THE NODES ARE HEAP-ORDERED BY RANDOM PRIORITIES
RBST (algorithm); Randomized binary search tree; Randomized search tree; Randomised binary search tree
In computer science, the treap and the randomized binary search tree are two closely related forms of binary search tree data structures that maintain a dynamic set of ordered keys and allow binary searches among the keys. After any sequence of insertions and deletions of keys, the shape of the tree is a random variable with the same probability distribution as a random binary tree; in particular, with high probability its height is proportional to the logarithm of the number of keys, so that each search, insertion, or deletion operation takes logarithmic time to perform.
Binary clock         
  • LEDs]] to get six decimal digits. There are two columns each for hours, minutes and seconds.
  • Binary large-scale electronic clock to indicate the time of day on 3 lines in hours, minutes, seconds on the face of the main railway station in St. Gallen, Switzerland. Time indicated is 9 o'clock 25 minutes 46 seconds.
  • Time Technology's Samui Moon binary-coded sexagesimal wristwatch. This clock reads 3:25.
  • Both clocks read 12:15:45.
CLOCK THAT DISPLAYS THE TIME OF DAY IN A BINARY FORMAT
Binary Clock; Binary Watch; Binary clocks; Binary time
A binary clock is a clock that displays the time of day in a binary format. Originally, such clocks showed each decimal digit of sexagesimal time as a binary value, but presently binary clocks also exist which display hours, minutes, and seconds as binary numbers.
Binary opposition         
PAIR OF RELATED TERMS OR CONCEPTS THAT ARE OPPOSITE IN MEANING
Binary order; Binary thinking; Binary oppositions; Binary pair; Opposition theory
A binary opposition (also binary system) is a pair of related terms or concepts that are opposite in meaning. Binary opposition is the system of language and/or thought by which two theoretical opposites are strictly defined and set off against one another.

Википедия

Binary search algorithm

In computer science, binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the array. If they are not equal, the half in which the target cannot lie is eliminated and the search continues on the remaining half, again taking the middle element to compare to the target value, and repeating this until the target value is found. If the search ends with the remaining half being empty, the target is not in the array.

Binary search runs in logarithmic time in the worst case, making O ( log n ) {\displaystyle O(\log n)} comparisons, where n {\displaystyle n} is the number of elements in the array. Binary search is faster than linear search except for small arrays. However, the array must be sorted first to be able to apply binary search. There are specialized data structures designed for fast searching, such as hash tables, that can be searched more efficiently than binary search. However, binary search can be used to solve a wider range of problems, such as finding the next-smallest or next-largest element in the array relative to the target even if it is absent from the array.

There are numerous variations of binary search. In particular, fractional cascading speeds up binary searches for the same value in multiple arrays. Fractional cascading efficiently solves a number of search problems in computational geometry and in numerous other fields. Exponential search extends binary search to unbounded lists. The binary search tree and B-tree data structures are based on binary search.